from dataclasses import dataclass

@dataclass
class ConnectionConfig:
    """连接配置"""
    host: str = "localhost"
    trade_port: int = 9999
    market_port: int = 9998
    max_retries: int = 5
    reconnect_interval: int = 5
    heartbeat_interval: int = 30
    auth_code: str = "000000"  # 公共认证码
    # 交易账户
    trade_username: str = ""
    trade_password: str = ""
    # 行情账户（独立认证体系）
    market_username: str = ""
    market_password: str = ""